package ch06.ex3_3_2_KotlinCollectionsAndJava1

/**
 * Created by caozp-ytcyc2007 on 2017/5/29.
 */
class CollectionUtils {
    companion object {
        fun uppercaseAll(list: Collection<String>): Collection<String> {
            return list.map { it.toUpperCase() }
        }
    }
}

fun printInUppercase(list: List<String>) {
    println(CollectionUtils.uppercaseAll(list))
    println(list.first())
}

fun main(args: Array<String>) {
    val list = listOf("a", "b", "c")
    printInUppercase(list)
}